<template>
    <div>
    <a-form
      :form="form"
      :label-col="{ span: 2}"
      :wrapper-col="{ span: 6 }"
      @submit="handleSubmit"
    >
      <a-form-item label="网站名称">
        <a-input
          v-decorator="[
            'password',
            { rules: [{ required: true, message: '请输入网站名称！' }] },
          ]"
        />
      </a-form-item>
      <a-form-item :wrapper-col="{ span: 12, offset: 5 }">
        <a-button type="primary" html-type="submit"> 修改 </a-button>
      </a-form-item>
    </a-form>
  </div>
</template>

<script>
export default {
    name: 'SettingInfo',
    data() {
        return {
            form: this.$form.createForm(this, { name: "coordinated" }),
        };
    },
    methods: {
        handleSubmit(e) {
        // e.preventDefault();
      this.form.validateFields((err, values) => {
        if (!err) {
          console.log("修改了： ", values);
          this.$message.success('密码修改成功，即将重新登陆')
        }
      });
    },
    },
};
</script>

<style lang="scss" scoped>

</style>